package com.cpi.cornpp.futurepurchase.view;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;

/**
 * 
 * @author Edgar Joao
 *
 */
public class FuturePurchaseByCustomerView implements Serializable{	
	/** Serial Version UID*/
	private static final long serialVersionUID = -3242206108301785676L;
	private int futurePurchaseId;
	private int futureDistributionId;
	private String customerCode;
	private String description;
	private List listProducts;	
	private String dealType;
	private String dealNumber;
	private String dealTotalNumber;
	private String dealLastNumber;
	private int accountPeriod;
	private int applicationPeriod;
	private String price;
	private String reference;
	private String date;
	private String cornOrigin;
	
	public FuturePurchaseByCustomerView() {
		super();
		Date d = null;
		SimpleDateFormat sdf = null;
		sdf = new SimpleDateFormat("dd/MM/yyyy");
		d = Calendar.getInstance().getTime();
		this.customerCode = new String();
		this.listProducts = new ArrayList();
		this.dealType = new String();
		this.dealNumber = new String();
		this.reference = new String();
		this.date = sdf.format(d);
		this.cornOrigin = "L";
	}

	public String getCustomerCode() {
		return customerCode;
	}

	public void setCustomerCode(String customerCode) {
		this.customerCode = customerCode;
	}

	public List getListProducts() {
		return listProducts;
	}

	public void setListProducts(List listProducts) {
		this.listProducts = listProducts;
	}

	public String getDealType() {
		return dealType;
	}

	public void setDealType(String dealType) {
		this.dealType = dealType;
	}

	public String getDealNumber() {
		return dealNumber;
	}

	public void setDealNumber(String dealNumber) {
		this.dealNumber = dealNumber;
	}

	public int getAccountPeriod() {
		return accountPeriod;
	}

	public void setAccountPeriod(int accountPeriod) {
		this.accountPeriod = accountPeriod;
	}

	public int getApplicationPeriod() {
		return applicationPeriod;
	}

	public void setApplicationPeriod(int applicationPeriod) {
		this.applicationPeriod = applicationPeriod;
	}

	public String getReference() {
		return reference;
	}

	public void setReference(String reference) {
		this.reference = reference;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getDealTotalNumber() {
		return dealTotalNumber;
	}

	public void setDealTotalNumber(String dealTotalNumber) {
		this.dealTotalNumber = dealTotalNumber;
	}

	public String getDealLastNumber() {
		return dealLastNumber;
	}

	public void setDealLastNumber(String dealLastNumber) {
		this.dealLastNumber = dealLastNumber;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public void setFuturePurchaseId(int futurePurchaseId) {
		this.futurePurchaseId = futurePurchaseId;
	}

	public int getFuturePurchaseId() {
		return futurePurchaseId;
	}

	public void setFutureDistributionId(int futureDistributionId) {
		this.futureDistributionId = futureDistributionId;
	}

	public int getFutureDistributionId() {
		return futureDistributionId;
	}

	public String getCornOrigin() {
		return cornOrigin;
	}

	public void setCornOrigin(String cornOrigin) {
		this.cornOrigin = cornOrigin;
	}
	
}
